<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sb" uri="/struts-bootstrap-tags"%>
<h3>
	<s:text name="page.heading" />
</h3>

<s:form id="switchSaveFormId" cssClass="form-horizontal" action="save"
	namespace="/switches" method="post" theme="simple">
	<s:hidden name="mode" />
	<s:hidden name="switches.id" />
	<div class="form-group">
		<s:actionerror cssClass="alert alert-error" />
	</div>
	<div class="form-group">
		<s:actionmessage cssClass="alert alert-success" />
	</div>
	<div class="control-group">
		<label class="control-label"><s:text name="switch.name" /></label>
		<div class="controls">
			<s:textfield cssClass="input-xlarge" name="switches.name"
				placeholder="%{getText('switch.name')}" required="true" />
		</div>
	</div>
	<div class="control-group">
		<label class="control-label"><s:text name="switch.icon" /></label>
		<div class="controls">
			<select id="inputIcon" name="switches.icon">
				<option selected="selected">キッチン</option>
				<option>リビング</option>
				<option>ベッドルーム</option>
				<option>子供部屋１</option>
				<option>子供部屋２</option>
				<option>アイコン6</option>
				<option>アイコン7</option>
				<option>アイコン8</option>
				<option>アイコン9</option>
				<option>アイコン10</option>
				<option>アイコン11</option>
				<option>アイコン12</option>
			</select>
		</div>
	</div>
	<div class="form-actions">
		<s:submit cssClass="btn btn-primary" value="%{getText('form.btn.submit')}" />
		<s:reset cssClass="btn" value="%{getText('form.btn.reset')}" />
	</div>
</s:form>